package cn.ecut.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author ruanxin
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/h1")
    public String h1(Model model){
        model.addAttribute("msg","HelloSpringAnnotation");
        return "hello";
    }
}
